const mongoose = require('mongoose')


const announcementSchema = new mongoose.Schema({
    title: {
        type: String,
        required: true
    },
    content: {
        type: String,
        required: true
    },
    types: {
        type: String,
        required: true
    },
    dateTime: {
        type: Date,
        required: true
    },
    status: {
        type: String,
        required: true
    }
})

const Announcement = mongoose.model('Announcement', announcementSchema)

module.exports = Announcement






